package org.csu.hotelsys.persistence;

import org.csu.hotelsys.domain.Check_in;
import org.csu.hotelsys.domain.Customer;
import org.csu.hotelsys.domain.Room_Reserve;
import org.csu.hotelsys.domain.room;

import java.util.List;

public interface CustomerMapper {

    //根据用户电话获取预定信息
    Room_Reserve getReserveRoomByPhone(String phone);

    //获取尚未入住的预定信息表
    List<Room_Reserve> getReserveRoomList();



    //获取可预订可入住客房列表
    List<room> getavailableRoomList();

    //查询入住登记列表
    List<Check_in> getCheck_inList();

    //根据用户身份证获取入住表信息
    Check_in getCheck_inByCredit(String credentials_num);



    //客房预定
    void reserveRoom(Room_Reserve room_reserve);


    //修改预定信息
    void updateReserveRoom(Room_Reserve room_reserve);






    //根据用户电话取消预定信息
    void cancelReserveRoom(String phone);




    //预定转入住
    void reserveInRoom(Check_in check_in);



    //登记入住
    void inRoom(Check_in check_in);


    //换房
    void updateCheck_inRoom(Check_in check_in);

    //根据身份证退房即修改客房状态
    void updateRoom_status(String credentials_num);



    //结账
    void pay(String credentials_num);













}
